{extend name="base" /}

{block name="title"}推荐链接{/block}

{block name="main"}
<div class="main">
	<div class="ljdh_box">
		<div class="container ljBar">
			<ul class="breadcrumb">
			  <li><a href="/">英雄联盟</a></li>
			  <li><a href="user_info">个人中心</a></li>
			  <li class="active">推荐链接</li>
			</ul>
		</div>
	</div>
	
	<div class="container">
		<div class="gg_box clearfix">
			<div class="left_nav">
				<dl>
					<dt class="gruop_title hidden-xs">个人中心</dt>
					<dd><a href="/user_info">个人资料</a></dd>
					<dd><a href="/user_info/change_password">密码安全</a></dd>
					<dd class="active"><a href="/user_info/link">推荐链接</a></dd>
				</dl>
			</div>
			<div class="right_contai">
				<dl>
					<dt class="gruop_title text-right hidden-xs">
						
					</dt>
					<dd class="right_mian">
						<div class="ly_box">
							<form class="form-horizontal">
							  <div class="form-group">
							    <label class="col-sm-2 control-label">推广链接1</label>
							    <div class="col-sm-4">
									<input type="text" class="form-control" value="{$Think.server.request_scheme}://{$Think.server.http_host}/promotion/register?promotion_username={$Think.session.user_name}" />
							    </div>
							  </div>
							  <!--<div class="form-group">
							    <label class="col-sm-2 control-label">推广链接2</label>
							    <div class="col-sm-4">
							      <input type="text" class="form-control" placeholder="请输入标题">
							    </div>
							  </div>-->
							  <div class="form-group">
							    <label class="col-sm-2 control-label">二维码推荐</label>
							    <div class="col-sm-4">
							      <div class="ewm_box" id="qrcode">
										<!--<img src="/images/select_btn.png"/>-->
							      </div>
							    </div>
							  </div>
							</form>
						</div>
					</dd>
				</dl>
			</div>
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" charset="utf-8" src="//cdn.bootcss.com/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
<script type="text/javascript">
	$('#qrcode').qrcode({
		//render: "table",
		text: "{$Think.server.request_scheme}://{$Think.server.http_host}/promotion/register?promotion_username={$Think.session.user_name}"
	});
</script>
{/block}
